﻿<?xml version="1.0" encoding="utf-8" ?>
<xs:schema
  targetNamespace="http://www.w3.org/1999/xhtml"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:js="http://www.codeplex.com/JSClientPages/JSElements"
  xmlns:html="http://www.w3.org/1999/xhtml">

    <xs:import namespace="http://www.codeplex.com/JSClientPages/JSElements" />
    <xs:redefine schemaLocation="xhtml.xsd">
        <xs:group name="inline">
            <xs:choice>
                <xs:group ref="html:inline" />
                <xs:choice minOccurs="0">
                    <xs:group ref="html:js.control" />
                    <xs:group ref="html:js.inline" />
                </xs:choice>
            </xs:choice>
        </xs:group>
        <xs:group name="block">
            <xs:choice>
                <xs:group ref="html:block" />
                <xs:choice minOccurs="0">
                    <xs:group ref="html:js.block" />
                </xs:choice>
            </xs:choice>
        </xs:group>
    </xs:redefine>   
    <xs:group name="js.inline">
        <xs:choice>
            <xs:group ref="js:flow"  minOccurs="0" maxOccurs="unbounded" />
        </xs:choice>
    </xs:group>
    <xs:group name="js.control">   
        <xs:choice>
            <xs:group ref="js:control" minOccurs="0" maxOccurs="unbounded" />
        </xs:choice>
    </xs:group>
    <xs:group name="js.block">
        <xs:choice>
            <xs:group ref="js:block" minOccurs="0" maxOccurs="unbounded" />
        </xs:choice>
    </xs:group>

</xs:schema>
